

import Shouye from "../views/zyq/Shouye"
import cihuiyufa from "../views/zyq/cihuiyufa"
import monikaoti from "../views/zyq/monikaoti"
// import tuijian from "../views/zyq/tuijian"
import denglu from "../views/zyq/denglu"

// 用use把VueRouter按装起来
// Vue.use(VueRouter);

// 路由配置：路径和组件的对应关系
export default [

    {
        path: "/",
        //    显示组件
        component: () => import(/* webpackChunkName: 'demot' */"../views/zyq/Shouye")
    },
    {
        //    当你访问根路径是是 path
        path: "/Shouye",
        //    显示组件
        component: () => import(/* webpackChunkName: 'demot' */"../views/zyq/Shouye")
    },
    {
        path: "/cihuiyufa",
        // 打包路由懒加载
        component: () => import(/* webpackChunkName: 'demot' */"../views/zyq/cihuiyufa")
    },
    {
        path: "/monikaoti",
        component: () => import(/* webpackChunkName: 'demot' */"../views/zyq/monikaoti")
    },
    {

        path: "/tuijian",
        component: () => import(/* webpackChunkName: 'demot' */"../views/zyq/tuijian")
        // 路由懒加载的写法（啊）
        // component:resolve=>requestAnimationFrame(["../views/zyq/tuijian"],resolve),
    },

    {
        path: "/denglu",
        component: () => import(/* webpackChunkName: 'demot' */"../views/zyq/denglu")
    }
    // ,
    // {
    //     path: "/BookDetail/:id",
    //     component: BookDetail
    // }
]







